<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>预约信息管理</title>
	<meta name="decorator" content="default"/>
	
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
	<script type="text/javascript" src="${ctxStatic}/js/tdc/tdcReservationHistory.js"></script>
	<script type="text/javascript">
		
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reservation/tdcReservation/history">预约信息历史记录列表</a></li>
		
	</ul>
	<form:form id="searchForm" modelAttribute="tdcReservation" action="${ctx}/reservation/tdcReservation/history" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>预约编号：</label>
				<form:input path="bespeakNumber" htmlEscape="false" maxlength="11" class="input-medium" id="searchBespeakNumber" placeholder="请输入预约编号" pattern="[0-9]{1,11}"/>
			</li>
			<li>
		<label class="control-label">时间查询：</label>
				<input name="bespeakStart" type="text" maxlength="20" class="input-medium Wdate " 
					value="<fmt:formatDate value="${tdcReservation.bespeakStart}" pattern="yyyy-MM-dd HH:mm"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'});"/>
		</li> 
		<li>
			<label class="control-label">至：</label>
				<input name="bespeakEnd" type="text" maxlength="20" class="input-medium Wdate " 
					value="<fmt:formatDate value="${tdcReservation.bespeakEnd}" pattern="yyyy-MM-dd HH:mm"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});"/>
		</li> 
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>预约编号</th>
				<th>预约人姓名</th>
				<th>预约类型</th>
				<th>嫌犯姓名</th>
				<th>预约时间段开始</th>
				<th>预约时间段结束</th>
				<th>预约状态</th>
				<th>房间号</th>
				<shiro:hasPermission name="reservation:tdcReservation:edit"><th>操作</th></shiro:hasPermission>
				
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tdcReservation">
			<tr>
				<td>
					${tdcReservation.bespeakNumber}
				</td>
				<td>
					${tdcReservation.bespeakName}
				</td>
				<td>
					${tdcReservation.bespeakType}
				</td>
				<td>
					${tdcReservation.suspectName}
				</td>
				<td>
					<fmt:formatDate value="${tdcReservation.bespeakStart}" pattern="yyyy-MM-dd HH:mm"/>
				</td>
				<td>
					<fmt:formatDate value="${tdcReservation.bespeakEnd}" pattern="yyyy-MM-dd HH:mm"/>
				</td>
				<td>
					${tdcReservation.bespeakStatus}
				</td>
				<td>
					${tdcReservation.bespeakRoom}
				</td>
				
				
				<shiro:hasPermission name="reservation:tdcReservation:edit"><td>
    				<a href="${ctx}/reservation/tdcReservation/views?id=${tdcReservation.id}">查看</a>
					<a href="${ctx}/reservation/tdcReservation/delete?id=${tdcReservation.id}" onclick="return confirmx('确认要删除该预约信息吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
				
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>